package com.iv.durian.cloud.dao.mapper;

import com.iv.durian.cloud.Lesson;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LessonMapper {

    Lesson get(@Param("id") Integer id, @Param("name") String name);

    int add(@Param("lesson") Lesson lesson);

    int updateLessonName(@Param("id") Integer id, @Param("name") String name);

    List<Lesson> list(@Param("status") Integer status, @Param("offset") Integer offset, @Param("limit") Integer limit);

    int count(@Param("status") Integer status);

    int delete(@Param("id") Integer id, @Param("name") String name);


}
